package cn.edu.usst.cs.goldfish.booking.meetingroom.job;

import cn.edu.usst.cs.goldfish.booking.meetingroom.service.BookingService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MeetingStatusJob implements Job {
    @Autowired
    private BookingService bookingService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        bookingService.scanAndNotifyMeetings();
    }
} 